﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.Question>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Spurðu sérfræðinginn
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Spurðu sérfræðinginn</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <div class="editor-label">
        <label for="Title">
            Titill spurningar</label>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.Title) %>
        <%: Html.ValidationMessageFor(model => model.Title) %>
    </div>
    <div class="editor-label">
        <label for="Question1">
            Skrifa spurningu</label>
    </div>
    <div class="editor-field">
        <textarea id="Question1" name="Question1" rows="8" cols="30"><%= Model.Question1 %></textarea>
        <%: Html.ValidationMessageFor(model => model.Question1) %>
    </div>
    <div class="editor-field">
        <%: Html.CheckBoxFor(model => model.IsPrivate) %>
        <%: Html.ValidationMessageFor(model => model.IsPrivate) %>
        Veldu ef þú vilt að spurningin birtist <b>ekki</b> á síðunni
    </div>
    <p>
        <input type="submit" value="Senda inn spurningu" />
    </p>
    <% } %>
</asp:Content>